from django.db import models

from coures.models import CourseModel
from user.models import UserModels
from utils.BaseModel import BaseModel


# Create your models here.
class CartModel(BaseModel):
    user=models.ForeignKey(UserModels,on_delete=models.CASCADE,verbose_name="用户外键")
    course=models.ForeignKey(CourseModel,on_delete=models.CASCADE,verbose_name="商品外键")
    selected=models.BooleanField(default=1,verbose_name="是否选中")
    class Meta:
        db_table='fgcart'
